package cn.wonderland.netflix.service.impl;

import cn.wonderland.netflix.domain.UserTest;
import cn.wonderland.netflix.mapper.UserTestMapper;
import cn.wonderland.netflix.service.UserTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserTestServiceImpl implements UserTestService {

    @Autowired
    private UserTestMapper testMapper;

    @Override
    public List<UserTest> getAllUsers() {
        return testMapper.getAllUsers();
    }

    @Override
    public void addUser(UserTest userTest) {
        testMapper.addUser(userTest);
    }
}
